package com.yunxin.core.application.dto.order;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.yunxin.core.application.admin.team.Team;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

/**
 * @author zero°
 * @since 2023-05-27
 */
@Data
@Schema(description = "分页用户申请分配订单列表对象-商家端")
public class OrderUserApplyAllocationMerchantPageConnectDTO implements Serializable {


    /**
     * id
     */
    @Schema(description = "id")
    private Long id;
    /**
     * 申请订单号
     */
    @Schema(description = "申请订单号")
    private String applyOrderNo;
    /**
     * USER_ID
     */
    private Long userId;

    /**
     * 用户姓名
     */
    @Schema(description = "用户姓名")
    private String userName;
    /**
     * 用户手机号
     */
    @Schema(description = "用户手机号")
    private String userPhone;

    /**
     * 团队id
     */
    @Schema(description = "团队ID")
    private Integer teamId;
    /**
     * 团队名称
     */
    @Schema(description = "团队名称")
    private String teamName;

    /**
     * 产品id
     */
    @Schema(description = "产品id")
    private Long productId;
    /**
     * 产品名称
     */
    @Schema(description = "产品名称")
    private String productName;
    /**
     * 当前账户id
     */
    @Schema(description = "当前账户id")
    private Long currentAccountId;
    /**
     * 当前账户名称
     */
    @Schema(description = "当前账户名称")
    private String currentAccountName;
    /**
     * 借款金额
     */
    @Schema(description = "借款金额")
    private BigDecimal loanAmount;
    /**
     * 借款期限 1.借款3个月 2.借款6个月 3.借款9个月 4.借款12个月 5.借款24个月
     */
    @Schema(description = "借款期限 1.借款3个月 2.借款6个月 3.借款9个月 4.借款12个月 5.借款24个月")
    private Integer loanPeriod;
    /**
     * 借款期限
     */
    @Schema(description = "借款期限")
    private String loanPeriodStr;
    /**
     * 订单状态 1.待处理 2.待跟进 3.有效客户 4.无效客户
     */
    @Schema(description = "订单状态 1.待处理 2.待跟进 3.有效客户 4.无效客户")
    private Integer orderStatus;
    /**
     * 订单状态
     */
    @Schema(description = "订单状态")
    private String orderStatusStr;
    /**
     * 备注
     */
    @Schema(description = "备注")
    private String remark;
    /**
     * 申请城市
     */
    @Schema(description = "申请城市")
    private String applyCity;
    /**
     * 用户微信
     */
    @Schema(description = "用户微信")
    private String userWechat;
    /**
     * 分配时间
     */
    @Schema(description = "分配时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date allocationTime;
    /**
     * 提交时间
     */
    @Schema(description = "提交时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date submitTime;

    /**
     * 团队集合
     */
    private List<Team> userTeamShips;

}
